//
//  JGSaveTool.m
//  WangYLottery
//
//  Created by JJetGu on 15/8/23.
//  Copyright (c) 2015年 JJetGu. All rights reserved.
//

#import "JGSaveTool.h"

@implementation JGSaveTool

+ (void)setObject:(id)value forKey:(NSString *)defaultName
{
    [[NSUserDefaults standardUserDefaults] setObject:value forKey:defaultName];
    [[NSUserDefaults standardUserDefaults] synchronize];
}

+ (id)objectForKey:(NSString *)defaultName
{
     return [[NSUserDefaults standardUserDefaults] objectForKey:defaultName];
}

@end
